'use strict';

module.exports = function jshint(grunt) {
    // Load task
    grunt.loadNpmTasks('grunt-jsbeautifier');

    // Options
    return {
        files: ["app/**/*.js", 'config/**/*.json', 'test/**/*.js'],
        options: {
            js: {
                braceStyle: "collapse",
                breakChainedMethods: false,
                e4x: true,
                evalCode: true,
                indentChar: " ",
                indentLevel: 0,
                indentSize: 4,
                indentWithTabs: false,
                jslintHappy: true,
                keepArrayIndentation: true,
                keepFunctionIndentation: true,
                maxPreserveNewlines: 2,
                preserveNewlines: true,
                spaceBeforeConditional: true,
                spaceInParen: false,
                unescapeStrings: true,
                wrapLineLength: 0
            }
        }
    };
};